<script>
	const arr = [0, 1, 2];
</script>

<button onclick={() => {
	delete arr[1];
	console.log(arr);
}}>del</button>